package dj.service;

import java.util.List;

import dj.pageModel.Pmenu;
import dj.pageModel.Puser;

public interface MenuService {

	/**
	 * 根据用户获取顶级菜单
	 * @param user
	 * @return
	 */
	public List<Pmenu> getTopMenu(Puser user);
	
	/**
	 * 根据用户获取其所有菜单
	 * @param user
	 * @return
	 */
	public List<Pmenu> getMenuByUser(Puser user);
	
	/**
	 * 获取菜单子节点
	 * @param menu
	 * @return
	 */
	public List<Pmenu> getMenuChildren(Pmenu menu, List<Pmenu> menus);
}
